$themeColor: #d32f2f;

.slide-fade-enter-active,
.slide-fade-leave-active {
  transition: all 0.4s;
}
.slide-fade-enter,
.slide-fade-leave-to {
  transform: rotateY(45deg);
  opacity: 0;
}
.list-container {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: $themeColor;
  font-weight: bold;
  .header {
    display: flex;
    align-items: center;
    width: 100%;
    height: 48px;
    position: fixed;
    top: 0;
    .close-icon {
      position: absolute;
      top: 16px;
      left: 16px;
      width: 14px;
      height: 14px;
    }
    .heading {
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      font-size: 16px;
      font-weight: normal;
      color: #fff;
    }
  }
  .content {
    margin-top: 48px;
    height: calc(100vh - 100px);
    overflow: auto;
    // 导航选项
    nav {
      display: flex;
      align-items: center;
      justify-content: space-around;
      width: 90%;
      margin: 10px auto 0;
      button {
        width: 140px;
        height: 36px;
        border-radius: 18px;
        background-color: $themeColor;
        color: #fff;
        border: 2px solid #c49000;
        font-size: 14px;
        font-weight: bold;
        outline: none;
      }
      // 选中状态
      .active {
        background-color: #fbc02d;
        border-color: #fbc02d;
      }
    }
    // 前三名
    .top-list {
      display: flex;
      justify-content: space-around;
      align-items: flex-end;
      margin-bottom: 10px;
      width: 96%;
      margin-top: 80px;
      padding: 0 2%;
      .top-list-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #fff;
        position: relative;
        width: 32%;
        .avatar {
          margin-bottom: 40px;
          width: 56px;
          height: 56px;
          border-radius: 50%;
        }
        .user-name {
          width: 100%;
          font-size: 16px;
          text-align: center;
          word-break: keep-all;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
        .team-name {
          margin: 0 0 8px 0;
          font-size: 14px;
        }
        .score {
          display: flex;
          align-items: center;
          justify-content: center;
          margin: 0;
          padding: 0 8px;
          height: 30px;
          border-radius: 15px;
          background-color: #ff6659;
          font-size: 14px;
          letter-spacing: 0.1em;
        }
        &::before {
          content: '';
          position: absolute;
          bottom: 80px;
        }

        &:nth-child(1) {
          order: 2;
          .avatar {
            width: 76px;
            height: 76px;
          }
          &::before {
            //left: 20px;
            width: 50px;
            height: 50px;
            background: url('~@/assets/rank/first.svg') no-repeat center center;
            background-size: 50px 50px;
          }
        }

        &:nth-child(2) {
          order: 1;
          &::before {
            //left: 10px;
            width: 40px;
            height: 40px;
            background: url('~@/assets/rank/second.svg') no-repeat center center;
            background-size: 40px 40px;
          }
        }

        &:nth-child(3) {
          order: 3;
          &::before {
            //left: 10px;
            width: 40px;
            height: 40px;
            background: url('~@/assets/rank/third.svg') no-repeat center center;
            background-size: 40px 40px;
          }
        }
      }
    }
    // 其他名次排名
    .list {
      width: 100%;
      overflow: auto;
      .list-box {
        width: 92%;
        padding: 10px 4%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #fff;
        .rank {
          width: 36px;
          text-align: center;
        }
        .avatar {
          width: 32px;
          height: 32px;
          border-radius: 15px;
        }
        .user-name {
          width: calc(100% - 105px);
          text-align: left;
          font-size: 16px;
        }
        .score {
          display: flex;
          align-items: center;
          justify-content: center;
          padding: 0 8px;
          height: 30px;
          border-radius: 15px;
          background-color: #ff6659;
          font-size: 14px;
          letter-spacing: 0.1em;
        }
      }
      .active {
        background-color: #fbc02d;
      }
    }
    // 本人排名
    .self {
      position: fixed;
      bottom: 0;
      background-color: #fbc02d;
      padding: 0;
    }
  }
}
